package com.shop.server.service;

import com.shop.common.entity.CommonResult;
import com.shop.common.pojo.User;
import com.shop.server.pojo.RegisterUser;

/**
 * 用户业务层接口
 * @author ghy
 * @version 1.0
 * @date 2020-10-29
 */
public interface UserService {

    /**
     * 增加
     *
     * @param user
     * @return
     */
    CommonResult insert(User user);

    /**
     * 判断验证码是否正确
     * @param user
     * @return
     */
    CommonResult checkCode(RegisterUser user);
}
